#include <stdio.h>
#include <string.h>
void delchar(char *s,char c){
	int i,j;
	i=j=0;
	while(s[i]!='\0'){
		if(s[i]!=c){
			s[j]=s[i];
			j++;
		}
		i++;
	}
	s[j]='\0'; 
	
}

int main(void)
{
	char ch;
	char str[100];
	printf("intput a string:\n");
	gets(str);
	printf ("input a char:");
	scanf("%c",&ch);
	getchar();
	delchar(str,ch);
	printf("result:");
	puts(str);
	
	 
	return 0;
}
